﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VideoFileOrganization.BatchRename
{
    public partial class characterFrm : RenameBaseFrm
    {
        public characterFrm()
        {
            InitializeComponent();
            this.Text = "字符截取";
            this.Index = 0;
            this.tabImage = Properties.Resources.interception;
        }

        protected override void ExecuteButton()
        {
            BatchRenameClass.tReviseParam param = new BatchRenameClass.tReviseParam();
            param.mode = rbtnBeforeCharacters.Checked ? BatchRenameClass.eReviseMode.BEFORE_A_RESERVED_CHARACTER : BatchRenameClass.eReviseMode.AFTER_A_RESERVED_CHARACTER;
            param.subString = new List<string>();
            param.subString.Add(tbxCharacters.Text);
            OnReviseEvnet(param);
        }
    }
}
